<?php

class Admin_Form_Menu extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $this->setMethod('post');

        $id = $this->createElement('hidden', 'id');
        $id->setDecorators(array('ViewHelper'));
        $this->addElement($id);

        $menuId = $this->createElement('hidden', 'menu_id');
        $menuId->setDecorators(array('ViewHelper'));
        $this->addElement($menuId);

        $label = $this->createElement('text', 'label');
        $label->setLabel('label: ');
        $label->setRequired(TRUE);
        $label->addFilter('StripTags');
        $label->setAttrib('size', 40);
        $this->addElement($label);

        $url= $this->createElement('text', 'url');
        $url->setLabel('url:');
        $url->setRequired(TRUE);
        $url->addFilter('StripTags');
        $url->setAttrib('size', 40);
        $this->addElement($url);

 
        $ordering = $this->createElement('hidden', 'ordering');
        $ordering->setDecorators(array('ViewHelper'));
        $this->addElement($ordering);

	    $parent = $this->createElement('hidden', 'parent');
        $parent->setDecorators(array('ViewHelper'));
        $this->addElement($parent);   
        

        $submit = $this->addElement('submit', 'submit', array('label' => "sbmit"));
    }
    
}
    




